//
//  LocationManager.h
//  OrderSeat
//
//  Created by 王威 on 13-11-25.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@protocol LocationManagerDelegate

-(void)locationManager:(CLLocationManager *)manager
   didUpdateToLocation:(CLLocation *)newLocation
          fromLocation:(CLLocation *)oldLocation;

@end

@interface LocationManager : NSObject<CLLocationManagerDelegate>

@property (strong, nonatomic) CLLocationManager *locationManager;
@property (weak, nonatomic) id<LocationManagerDelegate> delegate;

- (id)initWithDelegate:(id)delegate;
- (void)startUpdateLocation;

@end
